package a.f;

import a.c.*;
import a.c.x;

public class pc
  implements vc
{
  private rc e;
  private k f;
  private n g;
  private k h;
  private x i;
  private boolean j = false;
  private boolean k = true;
  private boolean l = false;
  private boolean m = true;
  private boolean n = false;
  private boolean o = true;
  private boolean p = true;
  public static int q;
  
  public void a(rc paramrc)
  {
    this.e = paramrc;
  }
  
  public rc a()
  {
    return this.e;
  }
  
  public void doLayout(o paramo)
  {
    boolean bool = o.eg;
    if ((bool) || (this.e != null))
    {
      if (!bool) {
        if (!i())
        {
          if (bool) {
            break label58;
          }
          if (!h()) {
            break label42;
          }
        }
      }
      a(paramo);
      label42:
      this.e.doLayout(paramo);
      c(paramo);
      label58:
      b(paramo);
    }
  }
  
  public boolean b()
  {
    return this.p;
  }
  
  public void a(boolean paramBoolean)
  {
    this.p = paramBoolean;
  }
  
  public boolean c()
  {
    return this.n;
  }
  
  public void b(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  public boolean d()
  {
    return this.o;
  }
  
  public void c(boolean paramBoolean)
  {
    this.o = paramBoolean;
  }
  
  public boolean canLayout(o paramo)
  {
    return (o.eg) || (this.e != null) ? this.e.canLayout(paramo) : false;
  }
  
  private boolean e()
  {
    return this.f != null;
  }
  
  private void a(o paramo)
  {
    boolean bool = o.eg;
    int i3 = o.dg;
    k localk = paramo.c(oc.a);
    Object localObject2;
    Object localObject3;
    zc localzc;
    Object localObject4;
    Object localObject5;
    Object localObject6;
    if ((localk == null) && ((bool) || (i())))
    {
      this.g = paramo.C();
      paramo.a(oc.a, this.g);
      localObject1 = paramo.w();
      label293:
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = ((m)localObject1).a();
        localObject3 = paramo.d(((d)localObject2).e());
        localzc = paramo.d(((d)localObject2).f());
        localObject4 = paramo.e(localObject2);
        if (i3 != 0) {
          break label326;
        }
        localObject5 = paramo.g(localObject2);
        kc[] arrayOfkc = new kc[localObject5.length];
        int i2 = 0;
        do
        {
          do
          {
            if (i2 >= localObject5.length) {
              break label293;
            }
            localObject6 = localObject5[i2].a().a(localObject5[i2].d().f(), (zb)localObject4, (zc)localObject3, localzc, localObject5[i2].e());
            if (i3 != 0) {
              break;
            }
            if (this.o)
            {
              a.d.w localw = ((a.d.o)localObject6).l();
              ((a.d.o)localObject6).c(0.0D, -1.0D);
              ((a.d.o)localObject6).b(localw);
            }
            arrayOfkc[i2] = new kc(((a.d.o)localObject6).j(-(((zc)localObject3).a() + ((zc)localObject3).c() * 0.5D), -(((zc)localObject3).b() + ((zc)localObject3).d() * 0.5D)), localObject5[i2].b());
            i2++;
          } while (i3 == 0);
          this.g.a(localObject2, arrayOfkc);
          ((m)localObject1).f();
        } while (bool);
      } while (i3 == 0);
    }
    label326:
    Object localObject1 = paramo.c(oc.b);
    if ((localObject1 == null) && ((bool) || (h())))
    {
      this.i = paramo.B();
      paramo.a(oc.b, this.i);
      localObject2 = paramo.v();
      label567:
      do
      {
        if (!((a.c.w)localObject2).e()) {
          break;
        }
        localObject3 = ((a.c.w)localObject2).d();
        localzc = paramo.d(localObject3);
        localObject4 = paramo.f(localObject3);
        localObject5 = new kc[localObject4.length];
        int i1 = 0;
        do
        {
          do
          {
            if (i1 >= localObject4.length) {
              break label567;
            }
            a.d.o localo = localObject4[i1].a().a(localObject4[i1].d().f(), localzc, localObject4[i1].e());
            if (i3 != 0) {
              break;
            }
            if (this.n)
            {
              localObject6 = localo.l();
              localo.c(0.0D, -1.0D);
              localo.b((a.d.w)localObject6);
            }
            localObject5[i1] = new kc(localo.j(-(localzc.a() + localzc.c() * 0.5D), -(localzc.b() + localzc.d() * 0.5D)));
            i1++;
          } while (i3 == 0);
          this.i.a(localObject3, localObject5);
          ((a.c.w)localObject2).f();
        } while (bool);
      } while (i3 == 0);
    }
  }
  
  private void b(o paramo)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (this.g != null)
      {
        paramo.j(oc.a);
        paramo.a(this.g);
        this.g = null;
      }
    }
    if (!bool)
    {
      if (this.i != null)
      {
        paramo.j(oc.b);
        paramo.a(this.i);
      }
    }
    else {
      this.i = null;
    }
  }
  
  private void c(o paramo)
  {
    boolean bool = o.eg;
    int i3 = o.dg;
    k localk1 = paramo.c(oc.a);
    k localk2 = paramo.c(oc.b);
    if ((bool) || ((localk1 == null) && (localk2 == null))) {
      return;
    }
    if ((bool) || ((!this.m) && (!this.l))) {
      return;
    }
    a.c.w localw = paramo.v();
    label338:
    label340:
    label343:
    label355:
    label357:
    do
    {
      do
      {
        if (!localw.e()) {
          return;
        }
        e locale = localw.d();
        Object localObject1;
        Object localObject2;
        do
        {
          if (bool) {
            break;
          }
          if ((localk2 != null) && ((bool) || (this.l)))
          {
            localObject1 = (kc[])localk2.get(locale);
            do
            {
              localObject2 = paramo.f(locale);
              if (localObject1 == null) {
                break;
              }
            } while (bool);
            if ((localObject2 != null) && ((bool) || (localObject1.length == localObject2.length)))
            {
              int i1 = 0;
              do
              {
                if (i1 >= localObject2.length) {
                  break;
                }
                a(paramo, locale, localObject2[i1], localObject1[i1]);
                i1++;
                if (bool) {
                  break label357;
                }
                if (i3 != 0) {
                  break label355;
                }
              } while (i3 == 0);
            }
          }
        } while (bool);
        if (localk1 != null) {
          if (this.m)
          {
            localObject1 = locale.h();
            do
            {
              do
              {
                if (localObject1 == null) {
                  break label343;
                }
                localObject2 = (kc[])localk1.get(localObject1);
                wb[] arrayOfwb = paramo.g(localObject1);
                if (i3 != 0) {
                  break;
                }
                if ((localObject2 != null) && (arrayOfwb != null) && ((bool) || (localObject2.length == arrayOfwb.length)))
                {
                  int i2 = 0;
                  do
                  {
                    if (i2 >= arrayOfwb.length) {
                      break;
                    }
                    a(paramo, (d)localObject1, arrayOfwb[i2], localObject2[i2]);
                    i2++;
                    if (bool) {
                      break label340;
                    }
                    if (i3 != 0) {
                      break label338;
                    }
                  } while (i3 == 0);
                }
              } while (bool);
              localObject1 = ((d)localObject1).i();
            } while (i3 == 0);
          }
        }
      } while (bool);
      localw.f();
    } while (i3 == 0);
  }
  
  private void a(o paramo, d paramd, wb paramwb, kc paramkc)
  {
    xb localxb = paramwb.a();
    a.d.o localo = paramkc.a();
    if (!o.eg)
    {
      if (b()) {
        wc.b(localo);
      }
      paramwb.a(localxb.a(localo, paramo.e(paramd), paramo.d(paramd.e()), paramo.d(paramd.f())));
    }
  }
  
  private void a(o paramo, e parame, xc paramxc, kc paramkc)
  {
    yc localyc = paramxc.a();
    paramxc.a(localyc.a(paramkc.a(), paramo.d(parame)));
  }
  
  public boolean f()
  {
    return this.m;
  }
  
  public void d(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }
  
  public boolean g()
  {
    return this.l;
  }
  
  public void e(boolean paramBoolean)
  {
    this.l = paramBoolean;
  }
  
  public boolean h()
  {
    return this.j;
  }
  
  public void f(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  public boolean i()
  {
    return this.k;
  }
  
  public void g(boolean paramBoolean)
  {
    this.k = paramBoolean;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.pc

 * JD-Core Version:    0.7.0.1

 */